//
//  SearchViewController.h
//  Alfresco
//
//  Created by Michael Muller on 10/5/09.
//  Copyright 2010 Zia Consulting.  Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 
//

#import <UIKit/UIKit.h>
#import "DownloadProgressBar.h"
#import "SearchResultsDownload.h"

@interface SearchViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, DownloadProgressBarDelegate, AsynchronousDownloadDelegate> {
	IBOutlet UISearchBar *search;
	IBOutlet UITableView *table;
	NSMutableArray *results;
	SearchResultsDownload *searchDownload;
	DownloadProgressBar *progressBar;
}	

@property (nonatomic, retain) UISearchBar *search;
@property (nonatomic, retain) UITableView *table;
@property (nonatomic, retain) NSMutableArray *results;
@property (nonatomic, retain) SearchResultsDownload *searchDownload;
@property (nonatomic, retain) DownloadProgressBar *progressBar;

- (void) asyncDownloadDidComplete:(AsynchonousDownload *)async;
- (void) asyncDownload:(AsynchonousDownload *)async didFailWithError:(NSError *)error;

@end
